package com.trip.common.commonConfig;


import com.trip.common.util.PasswordEncode;
import com.trip.common.util.RedisUtil;
import com.trip.common.util.SendEmailAuthUtil;
import com.trip.common.util.TokenUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {


    @Bean
    public TokenUtil tokenUtil(){
        return new TokenUtil();
    }

    @Bean
    public RedisUtil redisUtil(){
        return new RedisUtil();
    }

    @Bean
    public SendEmailAuthUtil sendEmailAuthUtil(){return new SendEmailAuthUtil();}

    @Bean
    public PasswordEncode passwordEncode(){return new PasswordEncode();}
}
